luci-mod-status: add .blur() action for kernel log scroll buttons
authorPaul Donald <[email protected]>
Mon, 30 Jun 2025 00:13:25 +0000 (02:13 +0200)
committerPaul Donald <[email protected]>
Mon, 30 Jun 2025 00:13:25 +0000 (02:13 +0200)
follow-up to f458c39c74fb97b0b97bae73572d4abbe169115b

Signed-off-by: Paul Donald <[email protected]>
modules/luci-mod-status/htdocs/luci-static/resources/view/status/dmesg.js

index 9050d1cb1237502d74ec1a4530a443170df3a240..82e8bba6a1d2d16d6095bcef025e6e072f14055e 100644 (file)
@@ -135,7 +135,7 @@ return view.extend({
                );
                scrollDownButton.addEventListener('click', () => {
                        scrollUpButton.scrollIntoView();
-                       scrollUpButton.blur();
+                       scrollDownButton.blur();
                });
 
                const scrollUpButton = E('button', { 
@@ -145,7 +145,7 @@ return view.extend({
                );
                scrollUpButton.addEventListener('click', () => {
                        scrollDownButton.scrollIntoView();
-                       scrollDownButton.blur();
+                       scrollUpButton.blur();
                });
 
                const self = this;